/*
 *  $Id: FireBeam.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008-2009 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Fire.Spells {
    public class FireBeam: SpellCard<Creature> {
        public FireBeam(): base("001_f_s_fire_beam") {
            Level = CompleteLevel.ReadyForTest;
            Version = 0;
            Element = ElementType.Fire;
            Value = 100;
            Target = CreatureTarget.Enemy;
            AddManaCost(ElementType.Fire, 3);
        }

        protected override void DoAction(TargetArgs<Creature> args) {
            MercilessFire.DoFireDamage(args.Player, this, args.Target, 2);
            if (args.Target.NeighbourLeft != null)
                MercilessFire.DoFireDamage(args.Player, this, args.Target.NeighbourLeft, 1);
            if (args.Target.NeighbourRight != null)
                MercilessFire.DoFireDamage(args.Player, this, args.Target.NeighbourRight, 1);
        }
    }
}
